home *** CD-ROM | disk | FTP | other *** search
- rem
- rem ****************
- rem * DEMOINDX.BAT *
- rem ****************
- rem
- rem Offers an ISINDEX document if no query arguments,
- rem else reports on the "results" of the query.
- rem
- rem Bob Denny <rdenny@netcom.com>
- rem 28-Apr-94
- rem
- set of=%output_file%
- if NOT %#==0 goto shoquery
- rem
- rem No query, signal server to do redirect to ISINDEX demo doc.
- rem
- echo Location: /demo/isindex.htm > %of%
- echo. >> %of%
- goto done
- rem
- rem There were query arguments. Generate plain text report (COMMAND.COM: BAH!)
- rem
- :shoquery
- echo Content-type:text/plain > %of%
- echo. >> %of%
- echo Here is what the server would have fed to the back-end program: >> %of%
- echo. >> %of%
- echo Number of query arguments = %# >> %of%
- echo. >> %of%
- echo Arguments: >> %of%
- echo %1 %2 %3 %4 %5 %6 %7 %8 %9 >> %of%
- :done
- echo -- end of report -- >> %of%
-
-
-